package com.evil.application.pojo.dto.reporting.data;

import com.evil.application.pojo.dto.view.config.filter.query.FilterGroupQueryReqDTO;
import com.evil.common.application.dto.order.OrderQueryReqDTO;
import lombok.Data;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import java.util.ArrayList;
import java.util.List;

/**
 * 报表数据 请求实体
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
public class ReportingDataReqDTO {

    @NotBlank(message = "报表key不能为空")
    private String reportingKey;

    /**
     * 筛选查询
     */
    @Valid
    private List<FilterGroupQueryReqDTO> filterQuery;

    /**
     * 筛选参数
     */
    @Valid
    private List<OrderQueryReqDTO> queries;

    public ReportingDataReqDTO() {
        this.filterQuery = new ArrayList<>();
        this.queries = new ArrayList<>();
    }
}
